package org.liveboardgames.agricola.model.enums;

public class SpecialPointConditionEnum {

  public static final String REED = "REED";

  public static final String CLAY = "CLAY";

  public static final String WOOD = "WOOD";

  public static String toResourceType(String condition) {
    String resourceType = null;

    if (REED.equalsIgnoreCase(condition)) {
      resourceType = ResourceTypeEnum.REED;
    }
    else if (CLAY.equalsIgnoreCase(condition)) {
      resourceType = ResourceTypeEnum.CLAY;
    }
    else if (WOOD.equalsIgnoreCase(condition)) {
      resourceType = ResourceTypeEnum.WOOD;
    }

    return resourceType;
  }
}
